﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace DSC
{
    public partial class frmIntroduce : Form
    {
        public frmIntroduce()
        {
            InitializeComponent();
            LoadVersion();
        }
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            if (keyData == Keys.Escape) // Thoát
            {
                this.Close();
                return true;
            }
            return base.ProcessCmdKey(ref msg, keyData);
        }

        void LoadVersion()
        {
            StreamReader sr = new StreamReader(Application.StartupPath+ "/vr.dat");
            lbVersion.Text = sr.ReadLine().Trim();
        }
    }
}
